<script src="<?=base_url(); ?>theme/js/main.js"></script>
<h3>Buscador de Clientes</h3>
<div class="widget_wrap">
	<div class="form_container">
	    <ul>
			<li>
    			<div class="form_grid_12">
    				<div class="form_input">
        				<form id="listClients" action="#" >
        					<div class="form_grid_4 alpha">
        						<input id="code" name="document_client" type="text" value="" />
        						<span class=" label_intro">Nº Documento</span>
        					</div>
        					<div class="form_grid_6 ">
        						<input id="name" name="name" type="text" value="" />
        						<span class=" label_intro">Razón Social o Nombre</span>
        					</div>
        					<div class="form_grid_2 ">
        					<button id="searchProducts" type="submit" class="btn_small btn_blue"><span>Buscar</span></button>
        					</div>
    					</form>
    					<span class="clear"></span>
    				</div>
    			</div>
			</li>
		</ul>
	</div>
    
	<div class="widget_content">
		<table id="" class="wtbl_list">
    		<thead>
        		<tr>
        			<th>Nº Documento</th>
        			<th>Razon Social o Nombre</th>
        		</tr>
    		</thead>
    		<tbody>

    		    <?php  
                foreach ($clients as $p) : ?>
                    <tr class="tr_even itemClients " codeClient="<?php echo $p->id_cliente ?>" style="cursor: pointer;">
        			<td class="document_client"><?php echo $p->document_client ?></td>
        			<td class="nameClient"><?php echo $p->name ?></td>
        		</tr>
        		<?php endforeach; ?>

              
    		</tbody>
		</table>
	</div>
</div>